package tool

import "MoSkeleton/framework/core/dto/request"

type GenTemplateClassifyPageReq struct {
	request.PageInfo
	request.BaseRequest
	Title            string `json:"title" form:"title"`
	ClassifyCode     string `json:"classifyCode" form:"classifyCode"`
	IsDetectTemplate string `json:"isDetectTemplate" form:"isDetectTemplate"`
	Status           string `json:"status" form:"status"`
}

type GenTemplateClassifyAddReq struct {
	DefaultStatesReq
	ClassifyCode      string   `json:"classifyCode" form:"classifyCode"`
	IsDetectTemplate  string   `json:"isDetectTemplate" form:"isDetectTemplate"`
	TemplateFileNames []string `json:"templateFileNames" form:"templateFileNames"`
	ListOrder         int32    `json:"listOrder" form:"listOrder"`
	Remark            string   `json:"remark" form:"remark"`
	Title             string   `json:"title" form:"title"`
	CreatedBy         string   `json:"createdBy" form:"createdBy"`
	UpdatedBy         string   `json:"updatedBy" form:"updatedBy"`
}

type GenTemplateClassifyUpdateReq struct {
	request.IDRequest
	DefaultStatesReq
	ClassifyCode      string   `json:"classifyCode" form:"classifyCode"`
	IsDetectTemplate  string   `json:"isDetectTemplate" form:"isDetectTemplate"`
	TemplateFileNames []string `json:"templateFileNames" form:"templateFileNames"`
	ListOrder         int32    `json:"listOrder" form:"listOrder"`
	Remark            string   `json:"remark" form:"remark"`
	Title             string   `json:"title" form:"title"`
	UpdatedBy         string
}

type DefaultStatesReq struct {
	IsDefault string `json:"isDefault" form:"isDefault" binding:"required,oneof=Y N"`
	Status    string `json:"status" form:"status" binding:"required,oneof=0 1"`
}
